package com.xingkeduo.business.order.remote.feign;

import com.xingkeduo.dto.AlipayTemplateDTO;
import com.xingkeduo.utils.ResponseUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * @author chi  2019-05-24 11:37
 **/
@FeignClient(value = "business-message")
public interface MessageFeignService {

    //微信消息
    @PostMapping("/wechat/send/{sendingType}")
    String pushMessage(@PathVariable("sendingType") @RequestParam(value = "sendingType") String sendingType,
                        @RequestBody String requestBody);

    //支付宝消息
    @PostMapping("/message/auth/alipay/message/push")
    ResponseUtils<Boolean> pushAlipayMessage(@RequestBody AlipayTemplateDTO alipayTemplateDTO);

}
